#include <bits/stdc++.h>
using namespace std;
int n;
string s;
bool vis[6];
map<string,int> mp;
string res[6]={"Power","Time","Space","Soul","Reality","Mind"};
int main(void){
    mp.insert(make_pair("purple",0));
    mp.insert(make_pair("green",1));
    mp.insert(make_pair("blue",2));
    mp.insert(make_pair("orange",3));
    mp.insert(make_pair("red",4));
    mp.insert(make_pair("yellow",5));
    scanf("%d",&n);
    int cnt=0;
    for(int i=0;i<n;i++){
        cin >> s;
        vis[mp[s]]=true;
    }
    for(int i=0;i<6;i++){
        if(!vis[i]){
            cnt++;
        }
    }
    printf("%d\n",cnt);
    for(int i=0;i<6;i++){
        if(!vis[i]){
            cout << res[i] << endl;
        }
    }
    return 0;
}